package cqie.frame.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 评价类型(EvaluateType)表实体类
 *
 * @author makejava
 * @since 2021-10-08 09:06:28
 */
@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("evaluate_type")
@ApiModel(description = "评价类型表")
public class EvaluateType extends Model<EvaluateType> {
    //Id
    @TableId(value = "id",type = IdType.AUTO)
    @TableField(value = "id")
    @ApiModelProperty(value = "ID")
    private Long id;
    //评价类型名称
    @TableField(value = "name")
    @ApiModelProperty(value = "评价类型名称")
    private String name;
    //权重
    @TableField(value = "weight")
    @ApiModelProperty(value = "权重")
    private Double weight;
    //排序码
    @TableField(value = "sortCode")
    @ApiModelProperty(value = "排序码")
    private Integer sortCode;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

